projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ebd17d
)
Fix alignment of declaractions of arrays
author
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 2 Dec 2020 12:07:40 +0000
(13:07 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Wed, 2 Dec 2020 12:08:33 +0000
(13:08 +0100)
* lisp/align.el (align-rules-list): Align variable declarations
like char *foo[], too (bug#23370).
lisp/align.el
patch
|
blob
|
history
diff --git
a/lisp/align.el
b/lisp/align.el
index b2cab1c1b27978fe1c15450d4122a2801cf17641..a11d834b823ff4eb310261e1f3a5db658f645c24 100644
(file)
--- a/
lisp/align.el
+++ b/
lisp/align.el
@@
-412,7
+412,7
@@
The possible settings for `align-region-separate' are:
(c-variable-declaration
(regexp . ,(concat "[*&0-9A-Za-z_]>?[&*]*\\(\\s-+[*&]*\\)"
- "[A-Za-z_][0-9A-Za-z:_]*\\s-*\\(\\()\\|"
+ "[A-Za-z_][
][
0-9A-Za-z:_]*\\s-*\\(\\()\\|"
"=[^=\n].*\\|(.*)\\|\\(\\[.*\\]\\)*\\)"
"\\s-*[;,]\\|)\\s-*$\\)"))
(group . 1)